package com.yue92.datalife.response;

import com.yue92.datalife.common.GroupCreate;
import com.yue92.datalife.common.GroupUpdate;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@Getter
@Setter
@Builder
public class RecordRes {

    private Long id;

    @NotNull(groups = {GroupCreate.class, GroupUpdate.class})
    private String name;

    private String comment;

    @NotNull(groups = {GroupCreate.class, GroupUpdate.class})
    private Boolean allowCumulate;

    @NotNull(groups = {GroupCreate.class, GroupUpdate.class})
    private Integer sort;

}
